import Vue from 'vue'
import dayjs from 'dayjs'
// date format filter

Vue.filter('dateFormat', (time, format = 'YYYY-MM-DD HH:mm:ss') => {
  return dayjs(time).format(format)
})

